package com.stylefeng.guns.modular.netcar.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper=true)
@TableName("app_version")
 /**
 * APP版本设置
 *
 * @author sasazaixian
 * @Date 2018-10-23 11:02
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class AppVersion extends Model<AppVersion> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    @TableId(value = "av_id", type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String avId;
    @Override
    protected Serializable pkVal() {
        return this.avId;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;
	
    public void setKey(String key) {
		this.key = key;
	}
	public String getKey() {
		return key;
	}	
	public void setSortField(String sortField) {
		this.sortField = sortField;
	}
	public String getSortField() {
		return sortField;
	}
	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}
	public String getSortOrder() {
		return sortOrder;
	}
	public void setEdate(String edate) {
		this.edate = edate;
	}
	public String getEdate() {
		return edate;
	}
	public void setSdate(String sdate) {
		this.sdate = sdate;
	}
	public String getSdate() {
		return sdate;
	}	
	
	


    @ApiModelProperty(value = "终端类型，0安卓，1苹果")
    @TableField("av_terminal_type")
    private String avTerminalType;     //终端类型，0安卓，1苹果

    @ApiModelProperty(value = "版本号")
    @TableField("av_version_code")
    private String avVersionCode;     //版本号

    @ApiModelProperty(value = "更新内容")
    @TableField("av_update_content")
    private String avUpdateContent;     //更新内容

    @ApiModelProperty(value = "下载地址")
    @TableField("av_file_address")
    private String avFileAddress;     //下载地址

    @ApiModelProperty(value = "更新人")
    @TableField("update_user")
    private String updateUser;     //更新人

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;     //更新时间

    public String getAvId(){
        return avId;
    }
    public void setAvId(String avId){
        this.avId=avId;
    }
    public String getAvTerminalType(){
        return avTerminalType;
    }
    public void setAvTerminalType(String avTerminalType){
        this.avTerminalType=avTerminalType;
    }
    public String getAvVersionCode(){
        return avVersionCode;
    }
    public void setAvVersionCode(String avVersionCode){
        this.avVersionCode=avVersionCode;
    }
    public String getAvUpdateContent(){
        return avUpdateContent;
    }
    public void setAvUpdateContent(String avUpdateContent){
        this.avUpdateContent=avUpdateContent;
    }
    public String getAvFileAddress(){
        return avFileAddress;
    }
    public void setAvFileAddress(String avFileAddress){
        this.avFileAddress=avFileAddress;
    }
    public String getUpdateUser(){
        return updateUser;
    }
    public void setUpdateUser(String updateUser){
        this.updateUser=updateUser;
    }
    public Date getUpdateTime(){
        return updateTime;
    }
    public void setUpdateTime(Date updateTime){
        this.updateTime=updateTime;
    }

}
